package netty.util;

public class StartAndStop {

    protected static volatile boolean running = true;

    public StartAndStop() {
        Runtime.getRuntime().addShutdownHook(new Thread(() -> {
            running=false;
        }));
    }

    public void sleep(long millis) {
        try {
            Thread.sleep(millis);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

}
